<?php

namespace LowCode\Traits\Slots;

use LowCode\Node;

/**
 * 设置 slot trigger 内容
 */
trait HasSlotTrigger
{
    /**
     * 设置 slot trigger 内容
     * @param Node $node
     * @param array $params
     * @return $this
     */
    public function slotTrigger(Node $node, array $params = []): static
    {
        return $this->addSlot($node,'trigger',$params);
    }
}
